package cn.hotel.service;

import cn.hotel.entity.Order;
import cn.hotel.response.Result;
import org.springframework.data.relational.core.sql.In;
import org.springframework.stereotype.Service;

import java.util.List;

public interface OrderService {
    public List<Order> getOrdersByUserId(String userId);

    public int addOrder(Order order);

    public Order getOrderById(Integer orderId);

    public int updateOrderStatus(String orderId,String status);

    public int payOrder(String userId,String password,String orderId);

    public int cancelOrder(Integer orderId);

    int getOrders();
    public Order getOrderById(String orderId);

    public List<Order> allOrder(String params , Integer status);

    public int deleteByOrderId(Integer order);

    public int getOrderCount();

    public int updateOrder(Order order);

    public List<Order> getOrderByName(String name);

    public Order getOrderByNameAndPhone(String name , String phone);
}
